import { createWebHistory, createRouter } from 'vue-router'

import login from '../pages/login.vue'
import MyPage from '../pages/My/MyPage.vue'
import MyselfMessage from '../pages/My/MyselfMessage.vue'
import ChangePassWord from '../pages/My/ChangePassWord.vue'
import ForgetPassWord from '../pages/My/ForgetPassWord.vue'
import Language from '../pages/My/Language.vue'
import PrivacyPolicy from '../pages/My/PrivacyPolicy.vue'
import Help from '../pages/My/Help.vue'
import Code from '../pages/My/Code.vue'
import AI from '../pages/My/AI.vue'

const routes = [
  {
    path: '/mypage',
    name: 'MyPage',
    component: MyPage
  },
  {
    path: '/mypage/message',
    name: 'MyselfMessage',
    component: MyselfMessage
  },
  {
    path: '/mypage/changepassword',
    name: 'ChangePassWord',
    component: ChangePassWord
  },
  {
    path: '/mypage/forgetpassword',
    name: 'ForgetPassWord',
    component: ForgetPassWord
  },
  {
    path: '/mypage/language',
    name: 'Language',
    component: Language
  },
  {
    path: '/mypage/privacypolicy',
    name: 'PrivacyPolicy',
    component: PrivacyPolicy
  },
  {
    path: '/mypage/help',
    name: 'Help',
    component: Help
  },
  {
    path: '/',
    name: 'Login',
    component: login
  },
  {
    path: '/mypage/ai',
    name: 'AI',
    component: AI
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
